package per.hx.bs.entity.yw;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import per.hx.bs.base.entity.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author HuXing
 * @date 2018/4/20  10:45
 */

@TableName("yw_leave")
public class YwLeaveDO extends BaseEntity<YwLeaveDO> {

    @TableId
    private Long id;
    private String userId;
    private String userName;
    private String leaveStart;
    private String leaveEnd;
    private String deptName;
    private String leaveType;
    private String leaveTypeName;
    private Long agreeUser;
    private String agreeUserName;
    private String agreeStatus;
    private String agreeStatusName;
    private String agreeDate;
    private String agreeRemark;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getLeaveStart() {
        return leaveStart;
    }

    public void setLeaveStart(String leaveStart) {
        this.leaveStart = leaveStart;
    }

    public String getLeaveEnd() {
        return leaveEnd;
    }

    public void setLeaveEnd(String leaveEnd) {
        this.leaveEnd = leaveEnd;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getLeaveType() {
        return leaveType;
    }

    public void setLeaveType(String leaveType) {
        this.leaveType = leaveType;
    }

    public String getLeaveTypeName() {
        return leaveTypeName;
    }

    public void setLeaveTypeName(String leaveTypeName) {
        this.leaveTypeName = leaveTypeName;
    }

    public Long getAgreeUser() {
        return agreeUser;
    }

    public void setAgreeUser(Long agreeUser) {
        this.agreeUser = agreeUser;
    }

    public String getAgreeUserName() {
        return agreeUserName;
    }

    public void setAgreeUserName(String agreeUserName) {
        this.agreeUserName = agreeUserName;
    }

    public String getAgreeStatus() {
        return agreeStatus;
    }

    public void setAgreeStatus(String agreeStatus) {
        this.agreeStatus = agreeStatus;
    }

    public String getAgreeStatusName() {
        return agreeStatusName;
    }

    public void setAgreeStatusName(String agreeStatusName) {
        this.agreeStatusName = agreeStatusName;
    }

    public String getAgreeDate() {
        return agreeDate;
    }

    public void setAgreeDate(String agreeDate) {
        this.agreeDate = agreeDate;
    }

    public String getAgreeRemark() {
        return agreeRemark;
    }

    public void setAgreeRemark(String agreeRemark) {
        this.agreeRemark = agreeRemark;
    }

    @Override
    public String toString() {
        return "YwLeaveDO{" +
                "id=" + id +
                ", userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", leaveStart='" + leaveStart + '\'' +
                ", leaveEnd='" + leaveEnd + '\'' +
                ", deptName='" + deptName + '\'' +
                ", leaveType='" + leaveType + '\'' +
                ", leaveTypeName='" + leaveTypeName + '\'' +
                ", agreeUser='" + agreeUser + '\'' +
                ", agreeUserName='" + agreeUserName + '\'' +
                ", agreeStatus='" + agreeStatus + '\'' +
                ", agreeStatusName='" + agreeStatusName + '\'' +
                ", agreeDate='" + agreeDate + '\'' +
                ", agreeRemark='" + agreeRemark + '\'' +
                '}';
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
